package soccerBet.project.dao;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;
import soccerBet.project.objects.*;
import soccerBet.project.utils.*;

public class RondaDAO {

	public RondaDAO(){
		
	}

	public void updateData_act(Integer idEpocaLiga) {

		Session session = HibernateUtil.getSessionFactory().openSession();
		
		session.beginTransaction();
		
		session.
		createQuery("update Ronda set dataActualizacao = ? where epocaLiga.idEpocaLiga =?").setTimestamp(0, new Date()).setInteger(1,idEpocaLiga).executeUpdate();
		
		session.getTransaction().commit();
		
		
		session.close();
	
		
	}





}